Xceed .NET Libraries Documentation
Xceed.FileSystem Assembly / Xceed.FileSystem Namespace / Filter Class / IsItemMatchingOne Method / IsItemMatchingOne(FileSystemItem,FilterScope,Filter[]) Method
The FileSystemItem object that will be verified.
The FilterScope of the filters to consider. Filters that do not share a common scope are ignored.
The array of Filter objects against which item will be verified.


In This Topic
    IsItemMatchingOne(FileSystemItem,FilterScope,Filter[]) Method
    In This Topic
    Verifies if the FileSystemItem object matches at least one of the provided filters.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function IsItemMatchingOne( _
       ByVal item As FileSystemItem, _
       ByVal applicableScope As FilterScope, _
       ByVal filters() As Filter _
    ) As FilterResult
    'Usage
     
    
    Dim item As FileSystemItem
    Dim applicableScope As FilterScope
    Dim filters() As Filter
    Dim value As FilterResult
     
    value = Filter.IsItemMatchingOne(item, applicableScope, filters)
    public static FilterResult IsItemMatchingOne( 
       FileSystemItem item,
       FilterScope applicableScope,
       Filter[] filters
    )

    Parameters

    item
    The FileSystemItem object that will be verified.
    applicableScope
    The FilterScope of the filters to consider. Filters that do not share a common scope are ignored.
    filters
    The array of Filter objects against which item will be verified.

    Return Value

    A FilterResult value indicating whether the item matches at least one of the Filter objects, or whether the FilterScope does not apply to the specified FileSystemItem.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also